package com.yndsoft.jc.ui.memberpage.myorder;

import com.yndsoft.jc.model.Member;
import com.yndsoft.jc.model.OrderDet;
import com.yndsoft.jc.model.Supplier;

import java.io.Serializable;
import java.util.List;

/**
 * Created by hasee on 2017/12/18.
 */

/**
 * int                   id                     ID
 * int                   sid                    检测机构ID
 * int                   mid                    会员ID
 * int                   maid                   会员寄件地址ID
 * int                   num                    总数量
 * float                 fee                    运费
 * float                 productprice           产品金额
 * float                 totalprice             总金额=运费+产品金额
 * float                 payprice               支付金额
 * int                   state                  状态
 * string                createtime             创建时间
 * MemberAddress         memberaddress          会员寄件地址
 * List<OrderDet>        dets                   订单明细
 * (以下实体为获取信息时有数据，提交时不需)
 * Supplier              supplier               检测机构
 * Member                member                 会员
 */
public class MyOrder implements Serializable {

    private static final long serialVersionUID = 4647848371409064327L;

    private int id;
    private int sid;
    private int mid;
    private int maid;
    private int num;
    private float fee;
    private float productprice;
    private float totalprice;
    private float payprice;
    private String codeno;
    private int paytype;
    private int state;
    private String createtime;
    private MemberAddress memberaddress;
    private List<OrderDet> dets;
    private Supplier supplier;
    private Member member;

    public String getCodeno() {
        return codeno;
    }

    public void setCodeno(String codeno) {
        this.codeno = codeno;
    }

    public int getPaytype() {
        return paytype;
    }

    public void setPaytype(int paytype) {
        this.paytype = paytype;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public int getMid() {
        return mid;
    }

    public void setMid(int mid) {
        this.mid = mid;
    }

    public int getMaid() {
        return maid;
    }

    public void setMaid(int maid) {
        this.maid = maid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public float getFee() {
        return fee;
    }

    public void setFee(float fee) {
        this.fee = fee;
    }

    public float getProductprice() {
        return productprice;
    }

    public void setProductprice(float productprice) {
        this.productprice = productprice;
    }

    public float getTotalprice() {
        return totalprice;
    }

    public void setTotalprice(float totalprice) {
        this.totalprice = totalprice;
    }

    public float getPayprice() {
        return payprice;
    }

    public void setPayprice(float payprice) {
        this.payprice = payprice;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public MemberAddress getMemberaddress() {
        return memberaddress;
    }

    public void setMemberaddress(MemberAddress memberaddress) {
        this.memberaddress = memberaddress;
    }

    public List<OrderDet> getDets() {
        return dets;
    }

    public void setDets(List<OrderDet> dets) {
        this.dets = dets;
    }

    public Supplier getSupplier() {
        return supplier;
    }

    public void setSupplier(Supplier supplier) {
        this.supplier = supplier;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }
}
